package com.class05.config;

import com.class05.ioc01.A;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(JavaConfigB.class)
// @Import作用在：导入其他配置类，相当于xml配置文件中的<import>标签
public class JavaConfigA {
    @Bean
    public A a() {
        return new A();
    }
}
